<template>
	<view>
		<u-navbar title="详情" :autoBack="true" :placeholder="true"></u-navbar>
		<u-parse :html="single"></u-parse>
		<rich-text :nodes="single"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				single: ''
			}
		},
		async onLoad(optcion) {
			if (optcion.tok) {
				let res = await this.$api.getbannertext({
					id: 2
				})
				this.single = res.data[0].cont
				console.log(res.data[0].cont);
				return
			}
			let res = await this.$api.getartcle({

			})
			let res1 = res.data.filter(v => v.id == optcion.id)
			this.single = res1[0].cont
			console.log(this.single);
		},
		methods: {

		}
	}
</script>

<style>
</style>